//
//  NewSongTableViewCell.m
//  A段项目音乐播放
//
//  Created by dllo on 15/5/25.
//  Copyright (c) 2015年 lanou3g.com蓝鸥科技. All rights reserved.
//

#import "NewSongTableViewCell.h"
#import "newSongModel.h"
#import "SingerModel.h"

@implementation NewSongTableViewCell


-(void)dealloc
{
    
    [_imageview release];
    [_labelone release];
    [_labeltwo release];
    [_labelthree release];
    [super dealloc];
    
    
    
    
    
}


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    
    self=[super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        
        
        [self creataimage];
    }
    
    return self;
    
}

-(void)creataimage

{
    
    UIImage *image =[UIImage imageNamed:@"爱心.png"];
    
    self.imageview =[[UIImageView alloc]initWithFrame:CGRectMake(10,10, 50, 50)];
    
    [self.imageView setImage:image];
    
    self.imageview.userInteractionEnabled =YES;
    
    self.imageview.layer.cornerRadius =10;
    
    self.imageview.clipsToBounds =YES;
    
    [self.contentView addSubview:self.imageview];
    
    self.labelone =[[UILabel alloc]initWithFrame:CGRectMake(15,55,40,40)];
    
    self.labelone.font =[UIFont systemFontOfSize:13];
    
    self.labelone.textColor =[UIColor grayColor];
    
    [self.contentView addSubview:self.labelone];
    
    self.labelthree =[[UILabel alloc]initWithFrame:CGRectMake(60,30,200,40)];
    
    [self.contentView addSubview:self.labelthree];
    
    self.labeltwo =[[UILabel alloc]initWithFrame:CGRectMake(70,50,250,40)];
    
    self.labeltwo.textColor =[UIColor grayColor];
    
    self.labeltwo.font =[UIFont systemFontOfSize:13];
    
    [self.contentView addSubview:self.labeltwo];
    
}
-(void)setHotsongModel:(SingerModel *)model

{
    self.labelone.text =[NSString stringWithFormat:@"%@", model.pick_count];
    
    self.labeltwo.text =model.singerName;
    
    self.labelthree.text = model.name;
    
}




- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
}

@end
